set launcher_folder=product\phone\build\default\outputs\default\phone_launcher-default-signed.hap

set launcher_settings_folder=feature\settings\build\default\outputs\default\launcher_settings-phone_launcher-default-signed.hap

cd ..

set hdc=hdc.exe

%hdc% shell "mount -o remount,rw /"

%hdc% shell "rm -rf /data/*"

%hdc% file send %launcher_folder% /system/app/com.ohos.launcher/Launcher.hap

%hdc% file send %launcher_settings_folder% /system/app/com.ohos.launcher/Launcher_Settings.hap

%hdc% shell "reboot"

Pause